package com.room.mapper;

import com.room.pojo.MeetingRoom;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MeetingRoomMapper {
    /**
     * 添加
     * @param meetingRoom
     * @return
     */
    public int insert(MeetingRoom meetingRoom);

    /**
     * 修改
     * @param meetingRoom
     * @return
     */
    public int update(MeetingRoom meetingRoom);

    /**
     * 删除
     * @param id
     * @return
     */
    public int delete(int id);

    /**
     * 详情
     * @param id
     * @return
     */
    public int detial(@Param("id") int id);

    /**
     * 分页查询
     * @param pageBeign
     * @param pageSize
     * @param name
     * @return
     */
    public List<MeetingRoom> selectPageList(@Param("pageBeign") int pageBeign,
                                            @Param("pageSize") int pageSize,
                                            @Param("name") String name);

    /**
     * 根据名称总记录数
     * @param name
     * @return
     */
    public int count(@Param("name") String name);
}
